<?php $this->load->view('layout/header_data_form');?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><h1>Current Holdings</h1></td>
    <td align="right"><img src="<?php echo img_link("small-logo.gif"); ?>" width="147" height="38" /></td>
  </tr>
</table>
<div id="wrap">
  <form id="form1" name="form1" method="post" action="">
    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="560" align="left" valign="top"><table border="0" cellpadding="7" cellspacing="0">
          <tr>
            <td align="right">&nbsp;</td>
            <td>&nbsp;</td>
            <td align="center"><strong>Annual Return Rate(%)</strong></td>
          </tr>
          <tr>
            <td align="right"><strong>Saving in Bank:</strong></td>
            <td><input value="<?php echo ($row ? $row["SB"] : "")?>" name="textfield5" type="text" class="field" id="textfield5" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["SBR"] : "")?>" name="textfield8" type="text" class="field" id="textfield8" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>Stock &amp; Shares:</strong></td>
            <td><input value="<?php echo ($row ? $row["SS"] : "")?>" name="textfield2" type="text" class="field" id="textfield2" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["SSR"] : "")?>" name="textfield9" type="text" class="field" id="textfield9" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>Unit Trust:</strong></td>
            <td><input value="<?php echo ($row ? $row["US"] : "")?>" name="textfield6" type="text" class="field" id="textfield6" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["USR"] : "")?>" name="textfield10" type="text" class="field" id="textfield10" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>Bonds:</strong></td>
            <td><input value="<?php echo ($row ? $row["B"] : "")?>" name="textfield7" type="text" class="field" id="textfield7" size="40" />            </td>
            <td align="center"><input value="<?php echo ($row ? $row["BR"] : "")?>" name="textfield11" type="text" class="field" id="textfield11" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>Fixed Deposit:</strong></td>
            <td><input value="<?php echo ($row ? $row["FD"] : "")?>" name="textfield" type="text" class="field" id="textfield" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["FDR"] : "")?>" name="textfield12" type="text" class="field" id="textfield12" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>Investment Property:</strong></td>
            <td><input value="<?php echo ($row ? $row["IP"] : "")?>" name="textfield3" type="text" class="field" id="textfield3" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["IPR"] : "")?>" name="textfield13" type="text" class="field" id="textfield13" size="10" /></td>
          </tr>
          <tr>
            <td align="right"><strong>CPF:</strong></td>
            <td><input value="<?php echo ($row ? $row["CPF"] : "")?>" name="textfield4" type="text" class="field" id="textfield4" size="40" /></td>
            <td align="center"><input value="<?php echo ($row ? $row["CPFR"] : "")?>" name="textfield14" type="text" class="field" id="textfield14" size="10" /></td>
          </tr>
</table>
<br />
<br />
<input name="btnCalculate" class="large button green" type="submit" value="Calculate"/>

<div id="graph" style="">
<br />
<br />
 <?php if($row):?>
 <?php $this->load->view('current_holding/chart');?>
 <?php endif;?>
 <input type="hidden" value="0" id="submit" name="submit" />
     <input type="hidden" value="1" id="submit" name="submit" />
            <table border="0" cellpadding="7" cellspacing="0">
              <tr>
                <td align="left"><strong>Explanation:</strong></td>
              </tr>
              <tr>
                <td align="left"><textarea name="Explanation" cols="60" rows="6" class="field" id="textfield3"><?php echo ($row && isset($row["explanation"]) ? $row["explanation"] : "")?></textarea></td>
              </tr>
              <tr>
                <td align="right"><input name="btnSubmit" type="submit" class="large button red" value="Submit" /></td>
              </tr>
          </table>
</form>
<br />
</div>
<br />
  <a href="JavaScript:window.close();"><img src="<?php echo img_link('cwindow.jpg');?>" alt="Close Window" width="82" height="15" border="0" /></a>
<?php $this->load->view('layout/footer_data_form');?>